package ru.pb.auth.network.engine.game.packets.sendable;

import ru.pb.auth.network.engine.game.packets.AuthServerToGameServerClientPacket;

public class LOGIN_SERVER_FAIL extends AuthServerToGameServerClientPacket
{
	public static final int REASON_IP_BANNED = 1;
	// public static final int REASON_IP_RESERVED = 2;
	public static final int REASON_WRONG_PASS = 3;
	// public static final int REASON_ID_RESERVED = 4;
	// public static final int REASON_NO_FREE_ID = 5;
	// public static final int NOT_AUTHED = 6;
	public static final int REASON_ALREADY_LOGGED = 7;

	private int _reason;

	public LOGIN_SERVER_FAIL(int reason)
	{
		_reason = reason;
	}

	@Override
	public void writeImpl()
	{
		writeH(0x01);
		writeC(_reason);
	}
}